package com.homegoods.designer.ui.activity;

import android.os.Bundle;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.designer.R;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BasePresenter;

/**
 * @author QiQi
 * @description 编辑设计师个人资料通用界面，包括设计经验、范围、报价
 */
@Route(path = ARouterPath.PATH_DESIGNER_EDIT)
public class DesignerEditActivity extends MyBaseFragmentActivity {

    @Override
    public int getLayout() {
        return R.layout.designer_activity_designer_edit;
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("编辑资料");
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    /**
     * 设计经验
     *
     * @param view
     */
    public void onExpClicked(View view) {
        ARouter.getInstance()
                .build(ARouterPath.PATH_EDIT_DESIGNER_INFO)
                .withString("title", "设计经验")
                .navigation();
    }

    /**
     * 范围
     *
     * @param view
     */
    public void onRangeClicked(View view) {
        ARouter.getInstance()
                .build(ARouterPath.PATH_EDIT_DESIGNER_INFO)
                .withString("title", "范围")
                .navigation();
    }

    /**
     * 报价
     *
     * @param view
     */
    public void onPriceClicked(View view) {
        ARouter.getInstance()
                .build(ARouterPath.PATH_EDIT_DESIGNER_INFO)
                .withString("title", "报价")
                .navigation();
    }

    /**
     * 简介
     *
     * @param view
     */
    public void onIntroClicked(View view) {
        ARouter.getInstance()
                .build(ARouterPath.PATH_EDIT_INTRO)
                .navigation();
    }
}
